import request from '@/utils/request'
import {DictDataResponse} from "@/api/dict/type";

enum API {
    HOSPITAL_DICT_URL = '/cmn/dict/findByDictCode/'
}

export const dict = {
    findByDictCode : (dictCode:string)=>{
        return request.get<any,DictDataResponse>(API.HOSPITAL_DICT_URL+`/${dictCode}`)
    }
}